cmake_minimum_required(VERSION 3.14)

include(cmake/SparkWithGit.cmake)

project(spark-webapp-runtime LANGUAGES CXX VERSION 1.7.0)

spark_initialize_modules()

# 资源文件路径
set(QRC_SOURCES "")

spark_add_executable_path(${PROJECT_NAME} 
    spark-webapp-runtime
    spark-webapp-runtime/resources/resources.qrc
)
target_link_qt5(${PROJECT_NAME})
spark_add_links_qt5(Concurrent WebEngineWidgets)
target_link_qt5_concurrent(${PROJECT_NAME})
target_link_qt5_WebEngineWidgets(${PROJECT_NAME})
target_link_libraries(${PROJECT_NAME} pthread)
target_link_dtk(${PROJECT_NAME})

# spark_framework_include_with_git(${PROJECT_NAME} 
#     https://gitee.com/spark-framework-libs/spark-framework-features
#     FEATURES version screenutil)